package com.csun.dsms.model.dto.yc;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author 金秋实新增数据
 * @description: TODO
 */
@Data
public class YcDataDto {

    private Long id;
    /**
     * no
     */
    private String no;

    /**
     * company
     */
    private String company;

    /**
     * 类型 0-片区 1-网格
     */
    private Integer type;

    /**
     * location
     */
    private String location;

    /**
     * user
     */
    private String user;
    /**
     * user
     */
    private String phone;


    /**
     * pm25
     */
    private Float pm25;

    /**
     * pm25
     */
    private Float pm10;
    private Float noise;
    private Float tem;
    private Float hum;
    private Float wp;
    private Float ws;
    private Float wd8;
    private Float wd360;
    private Float tsp;
    private Float atm;
    private Float lux;
    private Float co;
    private Float so2;
    private Float no2;
    private Float o3;
    private String rs; //r1-r8 ,分割 0,1,0,0,0,0,1,0

    private String status;// 在线状态
    private String alert; // 报警内容 是否报警

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;
}
